Xbasic

OBJECT.CURSOR_SET Function

Syntax

.Cursor_set(n position )

Arguments

position

The position of the cursor. 1 = Beginning of the text selection.

Description

Places the cursor at the specified position.

Discussion

The <OBJECT>.CURSOR_SET() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.CURSOR_SET() method places the cursor at the specified character Position on an open layout.

Example

The following script place under the OnArrive event of a field sets the cursor position to the fifth character.

topparent.cursor_set(5)

Limitations

Desktop applications only.

See Also